-- GENERATED SPELL FOR [Red Scalebane] --


function spell0_1047(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1047', 666, 1)
end

function Sorts_1047(pUnit, Event)
local choix_sorts_1047 = math.random(0, 0)
if choix_sorts_1047 == 0 then
pUnit:RegisterEvent('spell0_1047', 1, 1)
end
end

function mob1047_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1047', math.random(1500, 3000), 1)
end

function mob1047_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1047_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1047_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1047, 1, 'mob1047_Action')
RegisterUnitEvent(1047, 2, 'mob1047_Leave')
RegisterUnitEvent(1047, 3, 'mob1047_Kill')
RegisterUnitEvent(1047, 4, 'mob1047_Die')
